package com.accp.vehiclecare.biz.hzbiz;

import com.accp.vehiclecare.dao.hzdao.SupplierasMapper;
import com.accp.vehiclecare.dao.hzdao.goodssourceMapper;
import com.accp.vehiclecare.vo.hzvo.Supplieras;
import com.accp.vehiclecare.vo.hzvo.goodssource;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ghbiz {
    @Autowired(required = false)
    private SupplierasMapper supplierasMapper;
    @Autowired(required = false)
    private goodssourceMapper goodssourceMapper;
    public List<Supplieras> showSupplieras1(){return supplierasMapper.showSupplieras();}
    public List<goodssource>showlist(Integer id){return goodssourceMapper.showlist(id);}
    public int deletegoodssource(Integer id){return goodssourceMapper.deletegoodssource(id);}
    public int addgoodssource(goodssource goodssource){return goodssourceMapper.addgoodssource(goodssource);}
    public goodssource queryonegoodssource(Integer id){return goodssourceMapper.queryone(id);};
    public int updategoodssource(goodssource goodssource,Integer id){return goodssourceMapper.updategoodssource(goodssource,id); }
}
